package com.ggggeeennn.student.domain;

import com.ggggeeennn.common.annotation.Excel;
import com.ggggeeennn.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 学生信息对象 student
 * 
 * @author ggggeeennn
 * @date 2025-06-27
 */
public class Student extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long studentId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String studentName;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 专业 */
    @Excel(name = "专业")
    private String major;

    /** 班级 */
    @Excel(name = "班级")
    private String clazz;

    /** 学院 */
    @Excel(name = "学院")
    private String institute;

    /** 电话号码 */
    private String tel;

    /** 电子邮件 */
    private String email;

    /** 身份证号 */
    private String cardId;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 用于和用户表关联 */
    private Long userId;

    /** 用户名 */
    private String userName;

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }

    public void setStudentName(String studentName) 
    {
        this.studentName = studentName;
    }

    public String getStudentName() 
    {
        return studentName;
    }

    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }

    public void setMajor(String major) 
    {
        this.major = major;
    }

    public String getMajor() 
    {
        return major;
    }

    public void setClazz(String clazz) 
    {
        this.clazz = clazz;
    }

    public String getClazz() 
    {
        return clazz;
    }

    public void setInstitute(String institute) 
    {
        this.institute = institute;
    }

    public String getInstitute() 
    {
        return institute;
    }

    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setCardId(String cardId) 
    {
        this.cardId = cardId;
    }

    public String getCardId() 
    {
        return cardId;
    }

    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("studentId", getStudentId())
            .append("studentName", getStudentName())
            .append("grade", getGrade())
            .append("major", getMajor())
            .append("clazz", getClazz())
            .append("institute", getInstitute())
            .append("tel", getTel())
            .append("email", getEmail())
            .append("cardId", getCardId())
            .append("sex", getSex())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .toString();
    }
}
